/********************************************************************
    copyright (c) by tnmujoy
    @created:	10/10/2011   11:04
    @filename: 	SingletonDemo
    @author:	Limiko Lau (limiko.lau@gmail.com)
    @brief:	    
*********************************************************************/

#ifndef DEMO_SINGLETONDEMO_H_
#define DEMO_SINGLETONDEMO_H_

#include <iostream>
#include "DesignPattern/Singleton.hxx"

class SingletonDemo : public tnmujoy::gdut::Singleton<SingletonDemo>
{
public:
    SingletonDemo()
    {
         std::cout<<"SingletonDemo::SingletonDemo()\n";
    }
    ~SingletonDemo()
    {
         std::cout<<"SingletonDemo::~SingletonDemo()\n";
    }
    void run()
    {
      std::cout<<"SingletonDemo::run()\n";
    }
protected:
private:
};
REGISTER_SINGLETON_CLASS(SingletonDemo);

#endif //DEMO_SINGLETONDEMO_H_

//
//History:
//[10/10/2011] <limiko.lau@gmail.com> created